<?php
/**
 * @name: HOTN Sponsor
 * @version: 1.1
 * @license: GPLv2
 * @link: http://code.google.com/p/hotnsponsor/
 * 
 * @author: HammerOnTheNail
 * @link: http://hotn.hu/
 */

// Nyelvi file beolvasása
@include(e_PLUGIN."hotn_sponsor/languages/".e_LANGUAGE.".php");

// Alap értékek megadása
$eplug_name = "HOTN Sponsor";
$eplug_version = "1.1";
$eplug_author = "HammerOnTheNail";
$eplug_email = 'info@hotn.hu';
$eplug_url = "";
$eplug_compatible = "e107v0.7+";

$eplug_folder = "hotn_sponsor";
$eplug_menu_name = "hotn_sponsor";
$eplug_icon = $eplug_folder."/images/icon_32.jpg";
$eplug_icon_small = $eplug_folder."/images/icon_16.jpg";

// nem kell státusz követés az adminban
$eplug_status = false;
// nem kell linket kirakni
$eplug_link = false;

// plugin leírás
$eplug_description = HOTN_SPONSOR_PLUGIN_DESCRIPTION;
// Sikeres telepítés 
$eplug_done = HOTN_SPONSOR_PLUGIN_INSTALL_DONE;

// beállítások
$eplug_conffile = "admin/admin_index.php";
$eplug_caption = "HOTN Sponsor";

$eplug_table_names = array("hotn_sponsor_money","hotn_sponsor_options");

$eplug_tables = array(
	"CREATE TABLE IF NOT EXISTS `".MPREFIX."hotn_sponsor_money` (
		`hotn_sponsor_money_id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
		`hont_sponsor_money_user` INT NOT NULL ,
		`hotn_sponsor_money_minus` BOOL NOT NULL ,
		`hotn_sponsor_money_money` INT NOT NULL
		) TYPE=MyISAM;",
	"CREATE TABLE IF NOT EXISTS `".MPREFIX."hotn_sponsor_options` (
		`hotn_sponsor_options_id` INT NOT NULL ,
		`hotn_sponsor_options_max` INT NOT NULL ,
		`hotn_sponsor_options_text` text NOT NULL,
  		`hotn_sponsor_options_bank` text NOT NULL,
  		`hotn_sponsor_options_users_orderby` set('name','money') NOT NULL,
  		`hotn_sponsor_options_users_ordertype` set('asc','desc') NOT NULL,
		PRIMARY KEY ( `hotn_sponsor_options_id` )
		) TYPE=MyISAM;",
	"INSERT INTO `".MPREFIX."hotn_sponsor_options` (
		`hotn_sponsor_options_id` ,
		`hotn_sponsor_options_max`,
		`hotn_sponsor_options_users_orderby`,
		`hotn_sponsor_options_users_ordertype`
		)
		VALUES (
		'1', '100000', 'money', 'desc'
		);"
);

$upgrade_alter_tables = array(
	"ALTER TABLE `".MPREFIX."hotn_sponsor_options` ADD `hotn_sponsor_options_users_orderby` SET('name','money') NOT NULL , ADD `hotn_sponsor_options_users_ordertype` SET( 'asc', 'desc' ) NOT NULL"
);
?>